package com.ruoyi.am.domain;

public class AmDes {
    private String driver_id;
    private String car_num;
    private boolean is_busy;
    private AmDistance distance;
    private AmDistance duration;

    public AmDistance getDistance() {
        if (distance == null) {
            AmDistance amDistance = new AmDistance();
            this.distance = amDistance;
            return amDistance;
        }
        return distance;
    }

    public String getDriver_id() {
        return driver_id;
    }

    public void setDriver_id(String driver_id) {
        this.driver_id = driver_id;
    }

    public String getCar_num() {
        return car_num;
    }

    public void setCar_num(String car_num) {
        this.car_num = car_num;
    }

    public boolean isIs_busy() {
        return is_busy;
    }

    public void setIs_busy(boolean is_busy) {
        this.is_busy = is_busy;
    }

    public void setDistance(AmDistance distance) {
        this.distance = distance;
    }

    public AmDistance getDuration() {
        if (duration == null) {
            AmDistance amDistance = new AmDistance();
            this.duration = amDistance;
            return amDistance;
        }
        return duration;
    }

    public void setDuration(AmDistance duration) {
        this.duration = duration;
    }
}
